package design.patterns.dispatch.simple;

import java.awt.*;

/**
 * desc     : 基类
 * dateTime : 2020-06-14 10:22
 *
 * @author wwchen
 */
public class Point {
    int x , y;
    void draw(Canvas s){
        System.out.println(s);
        System.out.println(this);
    }

    void translate(int d){
        x += d;
        y += d;
        System.out.println(this);
    }

    void translate(int d, int y){
        x += d;
        y += y;
        System.out.println(this);
    }
}
